/*
** my_factorielle_it.c for  in /home/gueux_g/piscine/Jour_05
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Fri Oct  5 10:36:23 2012 gregory gueux
** Last update Thu Oct 11 20:36:57 2012 gregory gueux
*/

int		my_factorielle_it(int nb)
{
  int		i;
  int		count;

  i = nb - 1;
  count = 0;
  if (nb == 0)
    return (1);
  if (nb < 0)
    return (0);
  if (nb >= 12)
    return (0);
    while (i != 0)
    {
      nb = nb * i;
      i = i - 1;
      count = count + 1;
    }
  return (nb);
}
